package com.dragons.spring5.collectiontype;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Stu {
    private String[] course;//数组类型
    private List<String> list;//list集合类型属性
    private Map<String,String> maps; //map集合类型属性
    private Set<String> sets;//set集合类型属性
    public void setCourse(String[] course) { this.course = course; }
    public void setList(List<String> list) { this.list = list; }
    public void setMaps(Map<String, String> maps) { this.maps = maps; }
    public void setSets(Set<String> sets) { this.sets = sets; }

    @Override
    public String toString() {
        return "Stu{" +
                "course=" + Arrays.toString(course) +
                ", list=" + list +
                ", maps=" + maps +
                ", sets=" + sets +
                '}';
    }
}
